:root {
    --primary-bg: #36393f;
    --secondary-bg: #2f3136;
    --text-color: #dcddde;
    --accent-color: #5865f2;
    --message-bg: #40444b;
    --input-bg: #484c52;
}
/* 主聊天区 */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}
.message {
    display: flex;
    margin-bottom: 16px;
}
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #5865f2;
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}
.message-content {
    background-color: var(--message-bg);
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 70%;
}
.username {
    font-weight: bold;
    color: white;
    margin-bottom: 4px;
}
/* 输入框 */
.input-area {
    padding: 16px;
    background-color: var(--secondary-bg);
    border-top:1px solid #40444b;
    margin-bottom: 2%;
}
#message-input {
    width: 100%;
    padding: 12px;
    background-color: var(--input-bg);
    border: none;
    border-radius: 8px;
    color: var(--text-color);
    outline: none;
}
/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        width: 72px;
    }
    .channel-name {
        display: none;
    }
}